package com.alm.handle.core.domain.entity;

import com.alm.common.annotation.Excel;
import com.alm.common.core.domain.entity.SysDept;
import com.alm.handle.core.domain.entity.rs.BaseDevinfo;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@TableName("alm_dev_info")
public class SysDevInfo  extends BaseDevinfo {


    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "online_status")
    @Excel(name = "在线状态")
    Integer onlineStatus;

    @TableField(value ="device_id")
    private String deviceId;

    @TableField(value ="dev_name")
    private String devName;

    @TableField(value ="dev_type")
    private Integer devType;

    // 设备型号
    @TableField(value ="dev_model_type")
    private Integer devModelType;

    // 所属公司及归属人
    @TableField(value ="section_id")
    private Long sectionId;

    @TableField(value ="customer_id")
    private Long customerId;

    // 所属区域
    @TableField(value ="region_id")
    private Long regionId;

    @TableField(value ="add_time")
    private Long addTime;

    @TableField(value ="act_time")
    private Date actTime;

    @TableField(value ="router_mac")
    private String routerMac;

    @TableField(value ="dev_version")
    private String devVersion;

    @TableField(value ="remark")
    private String remark;

    /**
     * 设备分组id
     */
    @TableField(value = "dev_group_id")
    private Integer devGroupId;

    /**
     * 实时/定时
     */
    @TableField(value = "polling_mode")
    private String pollingMode;

    /**
     * 是否置顶 Y-是 N-否
     */
    @TableField(value = "is_top")
    private String isTop;

    @TableField(value = "updated_time")
    private Date updatedTime;

    /**
     * 是否设置过设备分组任务
     */
    @TableField(value = "has_group_cron")
    private Boolean hasGroupCron;


//    @TableField(exist = false)
//    private SysDept sysDept;
//    @TableField(exist = false)
//    private SysAreaInfo sysAreaInfo;
//    @TableField(exist = false)
//    private SysDevModel sysDevModel;



}
